package ru.study.thinkin.chap2modificators;

public class TestA {

	private String privs = "1";
	String ds= "2";
	protected String prots="3";
	public String pubs = "4";
	
		
}

 class TestB extends TestA {
	
	
	String getValuePriv() {
	  return "123";  //super.privs;	  
	}
	
	String getValueDef() {
		  return ds;	  
		}
	
	String getValueProt() {
		  return prots;	  
		}
	public String getPubs() {
		return pubs;
	}
	 
	public static void main(String[] args ){
		
		System.out.println("privs="+new TestB().getValueProt());
		
	}
}